
var config = require('../config');
var common = require('../common');
var logger = common.loggerUtil.getLogger('redis-pubsub');
var u = require('util');
var redisPubSub = require('redis-pubsub-emitter');


var options = {
	auth_pass:config.redis.pass
}
var redisPubSubClient = redisPubSub.createClient(config.redis.port, config.redis.host,options);
logger.debug(u.format('Using Redis %s:%d pass: %s', config.redis_host, config.redis_port, config.redis_pass));

exports = module.exports = redisPubSubClient;